package com.gls.security.core.configurer.adapter;

import com.gls.security.core.configurer.builder.RequestMatcherConfigurerBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.stereotype.Component;

/**
 * @author lizhiyong
 */
@Component
public class ExpressionUrlAuthorizationConfigurerAdapter implements HttpSecurityConfigurerAdapter {

    @Autowired
    private RequestMatcherConfigurerBuilder requestMatcherConfigurerBuilder;

    @Override
    public void configure(HttpSecurity http) throws Exception {
        requestMatcherConfigurerBuilder.configure(http.authorizeRequests());
    }

}
